<template>
  <!--首页快捷入口（宫格形式）-->
  <van-grid>
    <van-grid-item v-for="ls in homeItems" :key="ls.title" :icon="ls.img" :text="ls.title" :to="{name:ls.routeName}">

    </van-grid-item>
  </van-grid>
</template>

<script>
  export default{
    name:'homeGrid',
    data(){
      return{
        //首页快捷功能入口
              homeItems: [{
                title: "地址列表",
                routeName: "addresslist",
                img: require("@/assets/images/menu1.png"),
              },
                {
                  title: "图片分享",
                  routeName: "sharelist",
                  img: require("@/assets/images/menu2.png"),
                },
                {
                  title: "商品购买",
                  routeName: "goodslist",
                  img: require("@/assets/images/menu3.png"),
                },
                {
                  title: "留言反馈",
                  routeName: "note",
                  img: require("@/assets/images/menu4.png"),
                },
                {
                  title: "视频专区",
                  routeName: "videolist",
                  img: require("@/assets/images/menu5.png"),
                },
                {
                  title: "联系我们",
                  routeName: "contact",
                  img: require("@/assets/images/menu6.png"),
                },
              ],
      }
    }
  }
</script>

<style>
</style>
